import request from './request.js'

export function postLogin(e){
	return request.post("/login",{
		password:e.pass,
		phone:e.mobile
	})
}

export function postRegister(e){
	return request.post("/register",{
		nickName:e.name,
		password:e.pass,
		phone:e.mobile
	})
}

export function postEmail(e){
	return request.post("/emailValidCode",{
		email:e
	})
}

export function postCode(e){
	return request.post("/checkValidCode",{
		validCode:e
	})
}

export function postNewPass(e){
	return request.post("/retrievePassword",{
		phone:e.mobile,
		password:e.pass
	})
}